From 4c692b88df57e3999b8929bfd243ef99dc735d89 Mon Sep 17 00:00:00 2001 From: Christian Korber Date: Wed, 26 Feb 2025 21:19:13 +0100 Subject: [PATCH] themes/luci-theme-material: change dropdown text to black This commit enforces black text in dropdown[open] to highlight it against white background. Signed-off-by: Christian Korber --- .../htdocs/luci-static/material/cascade.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css index 8624eb64a0..ad29f36911 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -1590,6 +1590,10 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child { color: var(--white-color); } +.cbi-dropdown[open] > ul.dropdown > li[tabindex] { + color: var(--black-color) !important; +} + .cbi-dropdown > ul > li[display], .cbi-dropdown[open] > ul.preview, .cbi-dropdown[open] > ul.dropdown > li, @@ -1622,6 +1626,7 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child { .cbi-dropdown[open] > ul.dropdown > li[selected] { background: #b0d0f0; + color: var(--black-color); } .cbi-dropdown[open] > ul.dropdown > li.focus, @@ -1632,6 +1637,7 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child { .cbi-dropdown[open] > ul.dropdown > li:last-child { margin-bottom: 0; border-bottom: 0; + color: var(--black-color); } .cbi-dropdown[open] > ul.dropdown > li[unselectable] { -- 2.30.2